val spark = SparkSession
.builder()
.appName("test")
.master("local")
.config("hive.metastore.uris", "thrift://192.168.35.0:9083")
.enableHiveSupport()
.getOrCreate()

spark.sql("use spark")
val orders = spark.sql("select * from orders")